package com.lanou3g.demo.mapper;

import com.lanou3g.demo.entity.*;

import java.util.List;

public interface AdminMapper {

    List<AdminInfoQx> queryAdminAndRole();

    void insertAdminUserMessages(AdminInfo adminInfo);



    AdminInfo queryAdminIdByAdminCode(AdminInfo adminInfo);

    List<RoleInfo> queryRoleInfo();

    AdminInfo queryAdminInfo(AdminInfo adminInfo);

    void updateAdminInfo (AdminInfo adminInfo);

    void insertAdminRoles(List<AdminRole> adminRoles);

    void deleteAdminRoleById(AdminCondition adminCondition);
//    service方法名不和xml对应  但mapper需要

    void deleteAdminRole(AdminInfo adminInfo);

    void deleteAdminInfo(AdminInfo adminInfo);

    List<AdminCondition>findAllByCondition(AdminCondition adminCondition);

    List<ModuleInfo>queryModuleName();

//    List<RoleModule> queryRoleId(Integer moduleId);
    List<RoleModule> queryRoleId(RoleModule roleModule);

    List<Service> findByPage(Integer page);

    void updatePassword(List<Integer> idList);

    List<AdminInfoQx>queryRoleName(RoleInfo roleInfo);

    List<RoleInfo>queryRoleNameById(List<RoleModule> roleModuleList);

    List<AdminInfoQx> queryRoleNames(List<RoleInfo> roleInfoList);



}
